package com.ruoyi.qiushi.service.equipment;

import java.util.List;

import com.ruoyi.qiushi.domain.equipment.QiushiWarning;
import org.apache.ibatis.annotations.Param;

/**
 * 预警Service接口
 *
 * @author ruoyi
 * @date 2024-01-10
 */
public interface IQiushiWarningService {

    public int handleSend(QiushiWarning qiushiWarning);
    /**
     * 查询预警
     *
     * @param id 预警主键
     * @return 预警
     */
    public QiushiWarning selectQiushiWarningById(Long id);

    /**
     * 查询预警列表
     *
     * @param qiushiWarning 预警
     * @return 预警集合
     */
    public List<QiushiWarning> selectQiushiWarningList(QiushiWarning qiushiWarning);

    /**
     * 新增预警
     *
     * @param qiushiWarning 预警
     * @return 结果
     */
    public int insertQiushiWarning(QiushiWarning qiushiWarning);

    /**
     * 修改预警
     *
     * @param qiushiWarning 预警
     * @return 结果
     */
    public int updateQiushiWarning(QiushiWarning qiushiWarning);

    /**
     * 批量删除预警
     *
     * @param ids 需要删除的预警主键集合
     * @return 结果
     */
    public int deleteQiushiWarningByIds(Long[] ids);

    public int warningCount(Long familyId, Long deviceId);

    /**
     * 删除预警信息
     *
     * @param id 预警主键
     * @return 结果
     */
    public int deleteQiushiWarningById(Long id);
}
